{if $comments}
<a name="comments" id="comments"></a>
{$pagination}
{foreach from=$comments item=row}
	<div class="gb">
		<div class="header">
			<div class="author">
				{lang values="common|author"}
			</div>
			<div class="message">
				{lang values="common|message"}
			</div>
		</div>
		<div class="left">
			<strong>{lang values="common|name"}:</strong> {if $row.user_id}<a href="{uri args="users/view_profile/id_`$row.user_id`"}" title="{lang values="users|view_profile"}">{$row.name}</a>{else}{$row.name}{/if}<br />
			<strong>{lang values="common|date"}:</strong> {$row.date}
		</div>
		<div class="content">
			{$row.message}
		</div>
		<div class="footer">
			&nbsp;
		</div>
	</div>
	<br />
	<br />
{/foreach}
{else}
<div class="error">
	<h5>{lang values="common|no_entries"}</h5>
</div>
{/if}
<hr />
{$error_msg}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8">
	<fieldset class="no-border">
		<dl>
			<dt><label for="name">{lang values="common|name"}</label></dt>
			<dd><input type="text" name="form[name]" id="name" maxlength="20" value="{$form.name}"{$form.name_disabled} /></dd>
			<dt><label for="message">{lang values="common|message"}</label></dt>
			<dd>
				{$emoticons}
				<textarea name="form[message]" id="message" cols="50" rows="5">{$form.message}</textarea>
			</dd>
		</dl>
{$captcha}
	</fieldset>
	<div class="form-bottom">
		<input type="hidden" name="form[module]" value="{$form.module}" />
		<input type="hidden" name="form[entry_id]" value="{$form.entry_id}" />
		<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
		<input type="reset" value="{lang values="common|reset"}" class="form" />
	</div>
</form>